package com.ruoyi.production.domain.fertilizer;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 化肥购买信息对象 fertilizer_purchase
 *
 * @author ruoyi
 * @date 2021-07-12
 */
public class FertilizerPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long fertilizerPurchaseId;

    /** 肥料类型 */
    @Excel(name = "肥料类型")
    private Long fertilizerTypeId;

    /** 肥料名称 */
    @Excel(name = "肥料名称")
    private Long fertilizerNameId;

    /** NPK含量 */
    @Excel(name = "NPK含量")
    private String npkContent;

    /** 肥料品牌 */
    @Excel(name = "肥料品牌")
    private String brand;

    /** 购自公司 */
    @Excel(name = "购自公司")
    private String originCompany;

    /** 购买量 */
    @Excel(name = "购买量")
    private Long purchaseAmount;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseTime;

    /** 单价 */
    @Excel(name = "单价")
    private Long price;

    /** 总价 */
    @Excel(name = "总价")
    private Long totalPrice;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    public void setFertilizerPurchaseId(Long fertilizerPurchaseId)
    {
        this.fertilizerPurchaseId = fertilizerPurchaseId;
    }

    public Long getFertilizerPurchaseId()
    {
        return fertilizerPurchaseId;
    }
    public void setFertilizerTypeId(Long fertilizerTypeId)
    {
        this.fertilizerTypeId = fertilizerTypeId;
    }

    public Long getFertilizerTypeId()
    {
        return fertilizerTypeId;
    }
    public void setFertilizerNameId(Long fertilizerNameId)
    {
        this.fertilizerNameId = fertilizerNameId;
    }

    public Long getFertilizerNameId()
    {
        return fertilizerNameId;
    }
    public void setNpkContent(String npkContent)
    {
        this.npkContent = npkContent;
    }

    public String getNpkContent()
    {
        return npkContent;
    }
    public void setBrand(String brand)
    {
        this.brand = brand;
    }

    public String getBrand()
    {
        return brand;
    }
    public void setOriginCompany(String originCompany)
    {
        this.originCompany = originCompany;
    }

    public String getOriginCompany()
    {
        return originCompany;
    }
    public void setPurchaseAmount(Long purchaseAmount)
    {
        this.purchaseAmount = purchaseAmount;
    }

    public Long getPurchaseAmount()
    {
        return purchaseAmount;
    }
    public void setPurchaseTime(Date purchaseTime)
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime()
    {
        return purchaseTime;
    }
    public void setPrice(Long price)
    {
        this.price = price;
    }

    public Long getPrice()
    {
        return price;
    }
    public void setTotalPrice(Long totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public Long getTotalPrice()
    {
        return totalPrice;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fertilizerPurchaseId", getFertilizerPurchaseId())
            .append("fertilizerTypeId", getFertilizerTypeId())
            .append("fertilizerNameId", getFertilizerNameId())
            .append("npkContent", getNpkContent())
            .append("brand", getBrand())
            .append("originCompany", getOriginCompany())
            .append("purchaseAmount", getPurchaseAmount())
            .append("purchaseTime", getPurchaseTime())
            .append("price", getPrice())
            .append("totalPrice", getTotalPrice())
            .append("note", getNote())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
